Skip to content

Conversation

tanlng
Copy link

@tanlng tanlng commented Nov 13, 2023

在浏览器环境下
global.process.version 返回 node 的版本号,但是取值的时候使用 process.version,导致为undefined

Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

process is a global, and global.process is equivalent. If a node module bundler isn't working with this, it's broken - file an issue there.

@ljharb ljharb closed this Sep 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants